package day03;

public class OperDemo1 {
    public static void main(String[] args) {
        int a= 5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);


        int c=5,e=5;
        int f = c++;
        int x = ++e;
        System.out.println(c);//6
        System.out.println(e);//6
        System.out.println(f);//5
        System.out.println(x);//6
        System.out.println("--------------------");



        int p=5,q=5;
        int r = p--;
        int y = --q;
        System.out.println(p);//4
        System.out.println(q);//4
        System.out.println(r);//5
        System.out.println(y);//4

    }
}
